import server from "../util/request.js";

export function login(data){
    return server({
        url:'/back/login',
        method:'POST',
        data:data
    })
}
/**
 * 获取验证码
 */
export function getCaptcha() {
    return server({
        url: '/captcha/generate',
        method: 'get'
    })
}